package ro.gateway.aida.srv;

/**
 * <p>Title: Romanian AIDA</p>
 * <p>Description: :D application</p>
 * <p>Copyright: Copyright (comparator) 2003</p>
 * <p>Company: Romania Development Gateway </p>
 * @author Mihai Popoaei, mihai_popoaei@yahoo.com, smike@intellisource.ro
 * @version 1.0-* @version $Id: IIDGenerator.java,v 1.1 2004/10/24 23:37:04 mihaipostelnicu Exp $
 */
public abstract interface IIDGenerator extends IService, IConfigurable, IReconfigurable
{
      /**
       * Creaza un generator de id-uri identificat
       * prin numele specificat
       */
      public abstract void registerGenerator( String name );

      /**
       * Returneaza urmatorul id pt. generatorul
       * identificat prin numele specificat
       */
      public abstract long nextVal( String name );

      /**
       * Initializeaza generatorul specificat
       * cu valoarea specificata
       */
      public abstract void initGenerator( String name, long value );
}